<template>
     <div class="toptitle">
            <span>{{ props.titlename }}</span>
            <p class="imgtitle"></p>
        </div>
</template>

<script setup>
// 接收父
const props = defineProps({
    titlename: String
})
</script>
<style scoped lang="scss">
   .toptitle {
        height: 60px;
        .imgtitle{
        margin-top: 10px;
        width: 68px;
        height: 7px;
        background: url('@/assets/image/screen/dataScreen-title.png') no-repeat;
        background-size: 100% 100%;
    }
        span {
            letter-spacing:3px;
            color: white;
        }
    }
</style>